package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    /**
     * 分页查询护理项目
     * @param name
     * @param status
     * @return
     */
    Page<NursingProjectVo> selectPageNursing(String name, Integer status);

    /**
     * 添加护理项目
     * @param nursingProject
     */
    void insertNursingProject(NursingProject nursingProject);

    /**
     * 根据id查询护理项目
     * @param id
     * @return
     */
    NursingProjectVo selectNursingProjectById(Integer id);

    /**
     * 修改护理项目
     * @param nursingProject
     */
    void updateNursingProject(NursingProject nursingProject);

    /**
     * updateStatusById
     * @param id
     * @param status
     */
    void updateStatusById(@Param("id") Integer id, @Param("status") Integer status);

    /**
     * 根据id删除护理项目
     * @param id
     */
    void deleteNursingProjxectById(Integer id);

    /**
     * 查询所有护理项目
     * @return
     */
    List<NursingProjectVo> showAllNursingProject();
}
